<?php

declare(strict_types=1);

namespace Api\InterfaceApi\v1\Work;

use Api\Service\v1\Work\ChannelCodeApiService;
use Hyperf\Di\Annotation\Inject;
use Mine\MineApi;

/**
 * 渠道码
 */
class ChannelCodeApi extends MineApi
{
    #[Inject]
    protected ChannelCodeApiService $service;

    public function getList()
    {
        return $this->success($this->service->getChannelCodeList($this->request->all()));
    }
}